#ifndef    __BSP_BACKLIGHT_H__
#define    __BSP_BACKLIGHT_H__
#include "gd32f3x0.h"

#define LCD_BL_GPIO_PORT         GPIOB
#define LCD_BL_GPIO_CLK          RCU_GPIOB
#define LCD_BL_GPIO_PIN          GPIO_PIN_8
#define TIM16_CH1_AF			GPIO_AF_2

#define LCD_BL_TIM           		TIMER15
#define LCD_BL_TIM_CLK       		RCU_TIMER15

#define LCD_BL_TIM_IRQn			    TIMER15_IRQn
#define LCD_BL_TIM_IRQHandler       TIM15_IRQHandler


void TIM15_Configuration(void);
void SetBackLightIntensity(uint32_t intensity);


#endif